﻿body,html{ background: #4876ef;}
#wrapper{
  border: 1px solid #ff0000;
  width: 400px;
  height:500px;
  background: #ffffff;
  position:absolute;
  top:50%;
  left:50%;
  margin-left: -200px;
  margin-top:-250px;
  overflow: hidden;
}
header{
  border: 0px solid #ff0000;
  width:100%;
  height:91px;
  display: -webkit-box;
  -webkit-box-pack:center;
}
header img{
  position: relative;
  top:-30px;
}
.count{
  border: 0px solid #ff0000;
  width:100%;
  margin-top: 10px;
}
.count form{
  border: 0px  solid #00ff00;
  width:90%;
  margin:0 auto;
  display: -webkit-box;
  -webkit-box-orient:vertical;
}
.count form input{
  display: block;
  padding:13px;
  border: 0px;
  box-shadow:0 0 1px #999999;
}
.count form input:first-child{
  border-radius:3px 3px 0 0;
}
.count form input:nth-child(2){
  border-radius: 0 0 3px 3px;
}
.count form input:nth-child(3){
  margin-top: 20px;
  background: #4876ef;
  color: #ffffff;
  border-radius:3px;
}
.count div{
  border: 0px solid #ff0000;
  width:90%;
  margin: 10px auto;
  display: -webkit-box;
  -webkit-box-pack:justify;
}
.count div span{
  display: block;
  color: #666666;
}
footer{
  width:100%;
}
footer ul{
  width:100%;
  display:-webkit-box;
  -webkit-box-pack:center;
}
footer ul li{
   border: 0px solid #ff0000;
   display:-webkit-box;
}
footer ul li a{ display: block;}
footer ul li a img{
  display: block;
  width:60%;
  margin:0px auto;
}
@media screen and (max-width: 420px){
  #wrapper{
    border:1px solid #ff0000;
    width:100%;
    height:100%;
    overflow: hidden;
    position: absolute;
    top:0;
    left:0;
    margin: 0;
    background: #4876ef;
  }
  header{
    width:100%;
    height: 91px;
    overflow: hidden;
  }
  header img{
    position: relative;
    top:30px;
  }
  .count form input:nth-child(3){
    background: #0000ff;
  }
   .count  div span{
      display: block;
      color:#ffffff;
   }
   footer{
    width: 90%;
    margin:auto;
  }
   footer ul{
      width:100%;
      display: -webkit-box;
      -webkit-box-pack:center;
   }
   footer ul li{
      display: -webkit-box;
      width:30%;
   }
}
